package org.dawning.shop.common.commands.order;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.axonframework.commandhandling.TargetAggregateIdentifier;
import org.dawning.shop.common.domain.order.OrderId;
import org.dawning.shop.common.domain.order.OrderProduct;

import java.util.Map;

/**
 * Created by Administrator on 2017/6/20.
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CancelOrderCommand {

    @TargetAggregateIdentifier
    private OrderId orderId;

    private Map<String,OrderProduct> orderProducts;

}
